<%@ page language="java" import="java.util.*,com.king.cms.common.PowerParameter" pageEncoding="UTF-8"%>
<%@ include file="../../include/css.jsp"%>
<%-- /*包含css样式表*/ --%> 
<%   
	String pageFunc = "角色设置";		//功能描述 

%>
<%
%>
<html>
<head>
<title><%=pageFunc%></title>
<meta  http-equiv="Expires"     CONTENT="0">           
<meta  http-equiv="Cache-Control"     CONTENT="no-cache">           
<meta  http-equiv="Pragma"     CONTENT="no-cache">
<script language="javascript">
	function doEnable()
	{
		form1.bmMc.disabled=false;
		form1.bmBzrs.disabled=false;
	}
	function ki_save(){

	 if(clskg(document.getElementById("roleName").value) != ''){
	 	form1.submit();
	 }else {
	   alert('角色名称不能为空');
	 }
	}
	function ki_cls(){
		document.getElementById("roleName").value='';
		document.getElementById("remark").value='';
		document.getElementById("roleDesc").value='';
	}
	function ki_list(){
		window.open('<%=basePath%>role.do?doClass=list','_self');
	}
	////////除去空格/////////
	function clskg(va){
	  var th=/\s/g;
	 va=va.replace(th,'');
	 return va;
	}
</script>
</head>
<%
int pow=(PowerParameter.save | PowerParameter.cls | PowerParameter.list);
 %>
<body  background="<%=imgpath%>top3.gif" leftmargin="0" topmargin="0">
<p>&nbsp;</p>
<form name="form1" method="post"
			action="<%=basePath%>role.do?doClass=save">
			<table border="0" cellpadding="0" cellspacing="0" width="98%"
				height="2">
				<tr>
					<td width="9" height="1"></td>
					<td height="1" background="<%=path%>/img/images_06.gif">
						<p align="center">
							<b><%=pageFunc%>
							</b>
					</td>
					<td width="9" height="1"></td>
				</tr>
			</table>     
<table border="0" class="bg_table" align="center" cellPadding="2" cellSpacing="1" style="width:70%">
	<tr class="top_td">
		<td colspan="10"></td>
	</tr>

  <tr class="td2">
    <td width="20%">角色名</td>
    <td width="30%"><input name="roleName" type="text" class="area100" style="width:90%" check="c_n_30"></td>
  </tr>
  <tr class="td2">
    <td width="20%">角色描述</td>
    <td width="30%"><input name="roleDesc" type="text" class="area100" style="width:90%"  check="c_y_50"></td>
  <tr class="td2">
    <td>备注</td>
    <td><input class="area100" type="text" name="remark" style="width:90%;" check="c_y_50" ></td>
  </tr>
  <tr class="td2">
    <td>勾选功能</td>
    <td><font color="red">设置</font></td>
  </tr>
  <tr class="top_td">
    <td colspan="10"></td>
  </tr>
  </table></form>
</body>
<script language="javascript">
</script>
</html>
<%@ include file="../../pow.jsp"%>